home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 9
/
Night Owl CD-ROM (NOPV9) (Night Owl Publisher) (1993).ISO
/
009a
/
snpd0493.zip
/
CPUCHECK.ASM
< prev
next >
Wrap
Assembly Source File
|
1993-04-05
|
721b
|
19 lines
.I 46 16
.386 ; enable 386 instructions
pushfd ; save extended flags
mov eax,040000h
push eax ; push 40000h onto stack
popfd ; pop extended flags
pushfd ; push extended flags
pop eax ; put in eax
and eax,040000h ; is bit 18 set?
jne _486 ; yes, it's a 486
mov ax,386 ; no, it's a 386
jmp _386x
_486:
mov ax,486
_386x:
popfd ; clean the stack
.D 47 1